﻿using Common.ViewModels;
using PlatingLineUI.Windows;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PlatingLineUI.UserControls
{
    /// <summary>
    /// OptionControl.xaml 的交互逻辑
    /// </summary>
    public partial class OptionControl : UserControl
    {

        /// <summary>
        ///内容
        /// </summary>
        public static readonly DependencyProperty ContentProperty = DependencyProperty.Register(nameof(Content), typeof(object), typeof(OptionControl));

        /// <summary>
        ///内容
        /// </summary>
        public object Content
        {
            get { return (object)GetValue(ContentProperty); }
            set { SetValue(ContentProperty, value); }
        }

        public OptionControl()
        {
            InitializeComponent();
        }

        private void Btn高级设置_OnClick(object sender, RoutedEventArgs e)
        {
            FrameworkElement button = sender as FrameworkElement;
            ReflexBuildControl.AddWindow(button.DataContext);
        }

        private void Btn管理配方_Click(object sender, RoutedEventArgs e)
        {
            配方Window 配方Window=new 配方Window();
            配方Window.Show();
        }
    }
}
